package com.healthbox.appointmentservice.mapper;

import com.healthbox.appointmentservice.entity.AppointmentInfo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author pengpeng
 * @date 2022/5/11
 */
@Mapper
public interface AppointmentInfoMapper {
    int save(AppointmentInfo info);

    AppointmentInfo findOneByAIId(Long aIId);

    int update(AppointmentInfo info);

    int delete(Long aIId);

    List<AppointmentInfo> findByUserPhoneAndHospitalIdAndALId(String userPhone, Long hospitalId, Long aLId);

    /**
     * 危险：这个方法这是用来测试时使用，不要对外暴露，要不就真要跑路了。
     */
    void truncate();
}
